package fatecpg.com.br.japassei;

/**
 * Created by MarcoAurélio on 30/11/2014.
 */
public class Utilidades {

    public static int nvl(int value){
       String newValue = String.valueOf(value);

        if(newValue == null || newValue.equals("")){
            return 0;
        }else{
            return value;
        }
    }

    public static float nvl(float value){
        String newValue = String.valueOf(value);

        if(newValue == null || newValue.equals("")){
            return 0;
        }else{
            return value;
        }
    }
}
